﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/AccountSite.Master"
    Inherits="System.Web.Mvc.ViewPage<Entity.Car_Rental.RentalRecord>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    订单处理
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="SiteMap" runat="server">
    <a href="/Home/Index">首页</a> &gt; 订单处理
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div class="modelTitle">
        &nbsp;&nbsp;确认订单
    </div>
    <%Html.RenderPartial("RetalFlow"); %>
    <%using (Html.BeginForm())
      {
          
    %>
    <%: Html.HiddenFor(m => m.ProductID)%>
    <%: Html.Hidden("isquene", Request.QueryString["isquene"])%>
    <table width="100%" cellpadding="0" cellspacing="0" class="details">
        <tr>
            <td width="100">
                车辆名称：
            </td>
            <td>
                <%:Model.Product_Extend.ProductName%>
            </td>
        </tr>
        <tr>
            <td width="100">
                付款方式：
            </td>
            <td>
                <%: Html.PayTypeSelectList()%>
            </td>
        </tr>
        <tr id="onlineBank">
            <td>
            </td>
            <td>
                <div class="yl">
                    <ul>
                        <li>
                            <div>
                                <img alt="支付宝" src="/content/images/x-zfb.gif" /></div>
                            <div class="xuanxiang">
                                <input type="radio" name="bankType" value="1" />
                                支付宝</div>
                        </li>
                        <li>
                            <div>
                                <img width="152" height="128" alt="财付通" src="/content/images/x-cft.gif" /></div>
                            <div class="xuanxiang">
                                <input type="radio" name="bankType" value="2" />
                                财付通</div>
                        </li>
                        <li>
                            <div>
                                <img width="152" height="128" alt="银联" src="/content/images/x-yl.gif" /></div>
                            <div class="xuanxiang">
                                <input type="radio" name="bankType" value="4" />
                                银联</div>
                        </li>
                        <div class="clear">
                        </div>
                    </ul>
                </div>
            </td>
        </tr>
        <tr>
            <td>
                应付金额：
            </td>
            <td>
                <b>
                    <%:Model.Price %><%=Html.Hidden("Price",Model.Price) %>
                    元</b>
            </td>
        </tr>
        <tr>
            <td>
                取还车城市：
            </td>
            <td>
                <%:Model.ReturnCity %>
                <%: Html.HiddenFor(m => m.ReturnCity, new { @class = "input" })%>
                <%: Html.ValidationMessageFor(m => m.ReturnCity)%>
            </td>
        </tr>
        <tr>
            <td>
                取还车门店：
            </td>
            <td>
                <%:Model.ReturnShop %>
                <%: Html.HiddenFor(m => m.ReturnShop, new { @class = "input" })%>
                <%: Html.ValidationMessageFor(m => m.ReturnShop)%>
            </td>
        </tr>
        <tr>
            <td>
                取车时间：
            </td>
            <td>
                <%:Model.StartTime %>
                <%=Html.HiddenFor(m=>m.StartTime)%>
                <%: Html.ValidationMessageFor(m => m.StartTime)%>
            </td>
        </tr>
        <tr>
            <td>
                还车时间：
            </td>
            <td>
                <%:Model.EndTime %>
                <%=Html.HiddenFor(m=>m.EndTime)%>
                <%: Html.ValidationMessageFor(m => m.EndTime)%>
            </td>
        </tr>
        <tr>
            <td>
                备注：
            </td>
            <td>
                <%=Html.TextArea("Note") %>
            </td>
        </tr>
        <tr>
            <td colspan="2">
                <input type="submit" class="button" value="确认订单" id="rentalCarBtn" />
                <input type="button" class="button" value="修改信息" id="Submit1" onclick="location.href='/Car/Index'" />
            </td>
        </tr>
    </table>
    <%} %>
    <br />
    <script type="text/javascript">
        $(".details").find("td").filter(":even").css("text-align", "right");
        $(".details").find("td").filter(":odd").css({ "text-align": "left", "padding-left": "30px" });
        $(".details").find("tr>td").css("border-bottom", "1px solid #eee");
        $(function () {
            $("#onlineBank").hide();
            $("#PayType").change(function () {
                if ($(this).val() == 8)
                    $("#onlineBank").show();
                else
                    $("#onlineBank").hide();
            });

        });
    </script>
</asp:Content>
